/***
	Copyright (c) 2008-2009 CommonsWare, LLC
	
	Licensed under the Apache License, Version 2.0 (the "License"); you may
	not use this file except in compliance with the License. You may obtain
	a copy of the License at
		http://www.apache.org/licenses/LICENSE-2.0
	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
*/

package com.GameSpace.CoreAssets;


import com.GameSpace.SameGame.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

class CategoryWrapper {
	
	View base;
	TextView ctgName=null;
	TextView ctgDef=null;
	ImageView icon=null;
	String applicationID;
	View l;
	CategoryWrapper(View base) {
		this.base=base;
		 icon=null;
		 ctgName = null;
		 ctgDef=null;
	}
	
	public CategoryWrapper() {
		// TODO Auto-generated constructor stub
	}

	TextView get_ctgName() {
		if (ctgName==null) {
			ctgName=(TextView)base.findViewById(R.id.game_name);
		}
		
		return(ctgName);
	}
	
	TextView get_ctgDef() {
		if (ctgDef==null) {
			ctgDef=(TextView)base.findViewById(R.id.game_description);
		}
		
		return(ctgDef);
	}
	ImageView getIcon() {
		if (icon==null) {
			icon=(ImageView)base.findViewById(R.id.game_image);
		}
		
		return(icon);
	}
	
	
	
	
	String getId(){
		return applicationID;
	}
	void setId(String value){
		 applicationID=value;
	}
	
}
